package day10.KBCS;

public class Lian01 {
    public static void main(String[] args) {
        int num=getsum(1,2,3,4,5);
        System.out.println(num);
    }

    private static int getsum(int...arr) {
        int sum=0;
        for (int i = 0; i < arr.length; i++) {
            sum+=arr[i];
        }
        return sum;
    }
}
